package com.zhiyou100.loans.dao.impl;

import com.zhiyou100.loans.dao.RechargeDao;
import com.zhiyou100.loans.model.Recharge;
import com.zhiyou100.loans.util.JDBCUtil;

public class RechargeDaoImpl implements RechargeDao {
	JDBCUtil util = new JDBCUtil();
	@Override
	public int addRecharge(Recharge rech) {
		String sql="insert into recharge(money,userid,rechargetime,rechargetype) values(?,?,?,?)";
		Object[] objs={rech.getMoney(),rech.getUserid(),rech.getRechargetime(),rech.getType()};
		return util.update(sql, objs);
	}


}
